const mongoose = require('mongoose');
module.exports = () => {
    let schema = new mongoose.Schema({
        userId: {
            type: mongoose.Schema.Types.ObjectId,
            ref: 'User'//用户id
        },
        addTime: Date,//提交日期
        status: {
            default: 0,
            type: Number,//审核状态0未审核1审核中2审核成功3审核失败
        },
        code:String,//查询码
        verifyTime: Date,//审核日期
        deletedAt: Date,
        createdAt: Date,
        updatedAt: Date,
    }, {collection: 'tbl_user_apply'});
    return schema;
    //return mongoose.model('Active', schema);
};